package com.example.color_test.test;

import java.awt.*;
import java.util.Date;

public class GetDate {

    public static void main(String[] args) {
        // 定义HSV空间
        float[] hsv = new float[3];
        // 获取RGB各值
        int R = 102;// R
        int G = 204;// G
        int B = 153;// B
        Color.RGBtoHSB(R, G, B, hsv);
        System.out.println(hsv[0]);
    }

}
